package com.smile.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ToString
@TableName("feisuan_flight_task")
public class FeisuanFlightTask implements Serializable {
    private static final Long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("task_type")
    private Integer taskType;

    /**
     * 飞行任务id
     */
    @TableField("flight_id")
    private String FlightId;

    /**
     * 网关
     */
    @TableField("gateway_sn")
    private String gatewaySn;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;


    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 开始时间
     */
    @TableField("start_time")
    private LocalDateTime startTime;


    /**
     * 开始时间
     */
    @TableField("end_time")
    private LocalDateTime endTime;


    /**
     * 返回时间
     */
    @TableField("back_time")
    private LocalDateTime backTime;

    /**
     * 任务状态
     */
    @TableField("task_status")
    private String taskStatus;

    /**
     * 更新时间
     */
    @TableField("modify_time")
    private LocalDateTime modifyTime;

    /**
     * 删除状态
     */
    @TableField("delete_status")
    private Boolean deleteStatus;


    /**
     * 删除状态
     */
    @TableField("organization_id")
    private Long organizationId;

    /**
     * 对应无人机
     */
    @TableField("drone_id")
    private Long droneId;

    /**
     * 飞行时长
     */
    @TableField("flight_time")
    private Long flightTime;

    /**
     * 飞行距离
     */
    @TableField("flight_distance")
    private Integer flightDistance;

    /**
     * 是否统计
     */
    @TableField("is_statistics")
    private Integer isStatistics;

    @TableField("airport_id")
    private Long airportId;
}
